<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<%@ include file="/common/meta.jsp" %>
<%@ include file="/common/jquery-ui-inc.jsp" %>
	<title>添加权限系统</title>
<script type="text/javascript">

	$(function(){
		$('#inputForm').form({
			url:'${ctx}/flow/system/flow-sys!save.action',
		    onSubmit:function(){
		    	return $("#inputForm").form("validate");
		    },
		    success:function(data){
		    	var result = jQuery.parseJSON(data);
		    	if(result.flag=='T'){
		    		$.messager.alert('提交结果', '操作成功', 'info',function(){
		    			parent.closeAddWin();
		    		});
		    		parent.reload();
		    				
		    	}else{
		    		$.messager.alert('提交结果', result.msg, 'info');
		    	}        
		    }
		});
	}) ;
</script>
<body>	
<div id="tip">
	<form id="inputForm" name="inputForm" method="post" action="${ctx}/flow/system/flow-sys!save.action">
		<input type="hidden" name="sysId" id="sysId" value="${sysId}"/>
		<table class="datagrid-body" >
			<tr>
				<td class="datagrid-header">中文名称<span style="color:red;" >*</span></td>
				<td>
				<input name="flowSys.sysCname"  id="sysCname" value="${flowSys.sysCname}"
				class="easyui-validatebox" required="true" size="50" validType="length[1,50]" 
				missingMessage="请输入名称" invalidMessage="应为1~50个字" />				
				</td>
			</tr>
			
			<tr>
				<td class="datagrid-header">英文标识<span style="color:red;" >*</span></td>
				<td>
				<input name="flowSys.sysEname"  id="sysEname" value="${flowSys.sysEname}"
				class="easyui-validatebox" required="true" size="50" validType="length[1,50]" 
				missingMessage="请输入英文标识" invalidMessage="应为1~50个英文字母" />
				</td>
			</tr>
			<tr>
				<td class="datagrid-header">系统URL<span style="color:red;" >*</span></td>
				<td>
				<input name="flowSys.sysUrl"  id="sysEname" value="${flowSys.sysUrl}"
				class="easyui-validatebox" required="true" size="50" validType="length[1,100]" 
				missingMessage="请输入系统URL" invalidMessage="应为1~100个英文字母组成的URL" />
				</td>
			</tr>
					
				<tr>
				<td class="datagrid-header"></td>
				<td >
				<a href="#" class="easyui-linkbutton" iconCls="icon-save"
					onClick="$('#inputForm').submit();">保存</a>	
				</td>
			</tr>
		</table>
	</form>
</div>
</body>
</html>

<!--<script  src="${ctx}/uct/js/uct_form.js"> </script>-->
